﻿@{
    int? id = ViewBag.Id as int?;
}
@if(id.HasValue){
    <span>Value: @id.Value;</span>
}else{
    <span>No Value</span>
}
